#ifndef VC2005_COMPAT_H
#define VC2005_COMPAT_H

#ifdef _MSC_VER
#if _MSC_VER < 1500

#include <windows.h>
#include <string>
#include <sstream>

namespace std {
    template<typename T>
    std::string to_string(T value) {
        std::ostringstream os;
        os << value;
        return os.str();
    }
}

#define strcpy_s(dest, size, src) strcpy(dest, src)
#define strcat_s(dest, size, src) strcat(dest, src)
#define sprintf_s sprintf

#endif
#endif

#endif
